/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.misena.praxispraktik.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author TADSI12
 */
@Entity
@Table(name = "visitas")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Visitas.findAll", query = "SELECT v FROM Visitas v"),
    @NamedQuery(name = "Visitas.findByIdPracticas", query = "SELECT v FROM Visitas v WHERE v.idPracticas = :idPracticas"),
    @NamedQuery(name = "Visitas.findByTipo", query = "SELECT v FROM Visitas v WHERE v.tipo = :tipo"),
    @NamedQuery(name = "Visitas.findByNumero", query = "SELECT v FROM Visitas v WHERE v.numero = :numero"),
    @NamedQuery(name = "Visitas.findByNombres", query = "SELECT v FROM Visitas v WHERE v.nombres = :nombres"),
    @NamedQuery(name = "Visitas.findByApellidos", query = "SELECT v FROM Visitas v WHERE v.apellidos = :apellidos"),
    @NamedQuery(name = "Visitas.findByFormacion", query = "SELECT v FROM Visitas v WHERE v.formacion = :formacion"),
    @NamedQuery(name = "Visitas.findByEmpresa", query = "SELECT v FROM Visitas v WHERE v.empresa = :empresa"),
    @NamedQuery(name = "Visitas.findByMotivo", query = "SELECT v FROM Visitas v WHERE v.motivo = :motivo"),
    @NamedQuery(name = "Visitas.findByInstructor", query = "SELECT v FROM Visitas v WHERE v.instructor = :instructor")})
public class Visitas implements Serializable {
    private static final long serialVersionUID = 1L;
    @Basic(optional = false)
    @NotNull
    @Column(name = "idPracticas")
    @Id
    private int idPracticas;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 45)
    @Column(name = "Tipo")
    private String tipo;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 45)
    @Column(name = "Numero")
    private String numero;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 45)
    @Column(name = "Nombres")
    private String nombres;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 45)
    @Column(name = "Apellidos")
    private String apellidos;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 150)
    @Column(name = "Formacion")
    private String formacion;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 45)
    @Column(name = "Empresa")
    private String empresa;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 45)
    @Column(name = "Motivo")
    private String motivo;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 45)
    @Column(name = "Instructor")
    private String instructor;

    public Visitas() {
    }

    public int getIdPracticas() {
        return idPracticas;
    }

    public void setIdPracticas(int idPracticas) {
        this.idPracticas = idPracticas;
    }

    public String getTipo() {
        return tipo;
    }

    public void setTipo(String tipo) {
        this.tipo = tipo;
    }

    public String getNumero() {
        return numero;
    }

    public void setNumero(String numero) {
        this.numero = numero;
    }

    public String getNombres() {
        return nombres;
    }

    public void setNombres(String nombres) {
        this.nombres = nombres;
    }

    public String getApellidos() {
        return apellidos;
    }

    public void setApellidos(String apellidos) {
        this.apellidos = apellidos;
    }

    public String getFormacion() {
        return formacion;
    }

    public void setFormacion(String formacion) {
        this.formacion = formacion;
    }

    public String getEmpresa() {
        return empresa;
    }

    public void setEmpresa(String empresa) {
        this.empresa = empresa;
    }

    public String getMotivo() {
        return motivo;
    }

    public void setMotivo(String motivo) {
        this.motivo = motivo;
    }

    public String getInstructor() {
        return instructor;
    }

    public void setInstructor(String instructor) {
        this.instructor = instructor;
    }
    
}
